﻿namespace HRM.CORE.REPORT
{
    using APP.HELPER.Utils.CustomizeToolbox;
    using DevExpress.Utils;
    using DevExpress.XtraPrinting;
    using DevExpress.XtraReports.UI;
    using Dictionary.ERP;
    using HRM.CORE;
    using HRM.CORE.CLASS;
    using System; using Extra.ERP;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Drawing.Printing;

    public class rptSalaryTableList : XtraReport
    {
        private BottomMarginBand BottomMargin;
        private IContainer components;
        private DetailBand Detail;
        private GroupFooterBand GroupFooter1;
        private GroupHeaderBand GroupHeader1;
        private HRM_SALARY l_Salary;
        private HRM_SALARY_TABLELIST l_SalaryTableList;
        private string m_Code;
        private int m_Level;
        private int m_Month;
        private int m_Order;
        private int m_Year;
        private ReportFooterBand ReportFooter;
        private ReportHeaderBand ReportHeader;
        private TopMarginBand TopMargin;
        private XRTableCell txtAdvance;
        private XRTableCell txtAllowance;
        private XRTableCell txtAllowanceInsurance;
        private XRTableCell txtAssignment;
        private XRTableCell txtBasicSalary;
        private XRTableCell txtEmployeeCode;
        private XRTableCell txtFirstName;
        private XRTableCell txtIncomeTaxMoney;
        private XRTableCell txtInsurance;
        private XRTableCell txtInsuranceSalary;
        private XRTableCell txtMinusLateEarly;
        private XRTableCell txtMinusMoney;
        private XRLabel txtMonthYear;
        private XRTableCell txtOrder;
        private XRTableCell txtSalary;
        private XRTableCell txtSalaryMinus;
        private XRTableCell txtSalaryPlus;
        private XRLabel txtTitle;
        private XRTableCell txtTotalAdvance;
        private XRTableCell txtTotalAllowance;
        private XRTableCell txtTotalAllowanceInsurance;
        private XRTableCell txtTotalAssignment;
        private XRTableCell txtTotalBasicSalary;
        private XRTableCell txtTotalIncomeTaxMoney;
        private XRTableCell txtTotalInsurance;
        private XRTableCell txtTotalInsuranceSalary;
        private XRTableCell txtTotalMinusLateEarly;
        private XRTableCell txtTotalMinusMoney;
        private XRLabel txtTotalMoney;
        private XRLabel txtTotalMoneyText;
        private XRTableCell txtTotalSalary;
        private XRTableCell txtTotalSalaryMinus;
        private XRTableCell txtTotalSalaryPlus;
        private XRLabel xrLabel1;
        private XRLabel xrLabel3;
        private XRTable xrTable1;
        private XRTable xrTable2;
        private XRTable xrTable4;
        private XRTableCell xrTableCell1;
        private XRTableCell xrTableCell13;
        private XRTableCell xrTableCell14;
        private XRTableCell xrTableCell15;
        private XRTableCell xrTableCell16;
        private XRTableCell xrTableCell17;
        private XRTableCell xrTableCell18;
        private XRTableCell xrTableCell19;
        private XRTableCell xrTableCell2;
        private XRTableCell xrTableCell20;
        private XRTableCell xrTableCell21;
        private XRTableCell xrTableCell22;
        private XRTableCell xrTableCell23;
        private XRTableCell xrTableCell24;
        private XRTableCell xrTableCell25;
        private XRTableCell xrTableCell28;
        private XRTableCell xrTableCell3;
        private XRTableCell xrTableCell4;
        private XRTableCell xrTableCell5;
        private XRTableCell xrTableCell6;
        private XRTableRow xrTableRow1;
        private XRTableRow xrTableRow2;
        private XRTableRow xrTableRow5;

        public rptSalaryTableList()
        {
            this.components = null;
            this.l_Salary = new HRM_SALARY();
            this.l_SalaryTableList = new HRM_SALARY_TABLELIST();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
        }

        public rptSalaryTableList(int Level, string Code, int Month, int Year)
        {
            this.components = null;
            this.l_Salary = new HRM_SALARY();
            this.l_SalaryTableList = new HRM_SALARY_TABLELIST();
            this.m_Level = 0;
            this.m_Code = "";
            this.m_Month = 0;
            this.m_Year = 0;
            this.m_Order = 0;
            this.InitializeComponent();
            this.m_Level = Level;
            this.m_Code = Code;
            this.m_Month = Month;
            this.m_Year = Year;
        }

        protected override void Dispose(bool disposing)
        {
            if (disposing && (this.components != null))
            {
                this.components.Dispose();
            }
            base.Dispose(disposing);
        }

        private void InitializeComponent()
        {
            this.Detail = new DetailBand();
            this.xrTable2 = new XRTable();
            this.xrTableRow2 = new XRTableRow();
            this.txtOrder = new XRTableCell();
            this.txtEmployeeCode = new XRTableCell();
            this.txtFirstName = new XRTableCell();
            this.txtBasicSalary = new XRTableCell();
            this.txtInsuranceSalary = new XRTableCell();
            this.txtAllowanceInsurance = new XRTableCell();
            this.txtAllowance = new XRTableCell();
            this.txtMinusLateEarly = new XRTableCell();
            this.txtMinusMoney = new XRTableCell();
            this.txtInsurance = new XRTableCell();
            this.txtIncomeTaxMoney = new XRTableCell();
            this.txtAdvance = new XRTableCell();
            this.txtAssignment = new XRTableCell();
            this.txtSalaryPlus = new XRTableCell();
            this.txtSalaryMinus = new XRTableCell();
            this.txtSalary = new XRTableCell();
            this.xrTableCell3 = new XRTableCell();
            this.TopMargin = new TopMarginBand();
            this.BottomMargin = new BottomMarginBand();
            this.ReportHeader = new ReportHeaderBand();
            this.txtTitle = new XRLabel();
            this.txtMonthYear = new XRLabel();
            this.xrTable1 = new XRTable();
            this.xrTableRow1 = new XRTableRow();
            this.xrTableCell1 = new XRTableCell();
            this.xrTableCell14 = new XRTableCell();
            this.xrTableCell13 = new XRTableCell();
            this.xrTableCell4 = new XRTableCell();
            this.xrTableCell19 = new XRTableCell();
            this.xrTableCell24 = new XRTableCell();
            this.xrTableCell18 = new XRTableCell();
            this.xrTableCell15 = new XRTableCell();
            this.xrTableCell5 = new XRTableCell();
            this.xrTableCell21 = new XRTableCell();
            this.xrTableCell6 = new XRTableCell();
            this.xrTableCell20 = new XRTableCell();
            this.xrTableCell22 = new XRTableCell();
            this.xrTableCell23 = new XRTableCell();
            this.xrTableCell16 = new XRTableCell();
            this.xrTableCell17 = new XRTableCell();
            this.xrTableCell2 = new XRTableCell();
            this.ReportFooter = new ReportFooterBand();
            this.txtTotalMoneyText = new XRLabel();
            this.txtTotalMoney = new XRLabel();
            this.xrLabel3 = new XRLabel();
            this.xrLabel1 = new XRLabel();
            this.GroupFooter1 = new GroupFooterBand();
            this.xrTable4 = new XRTable();
            this.xrTableRow5 = new XRTableRow();
            this.xrTableCell25 = new XRTableCell();
            this.txtTotalBasicSalary = new XRTableCell();
            this.txtTotalInsuranceSalary = new XRTableCell();
            this.txtTotalAllowanceInsurance = new XRTableCell();
            this.txtTotalAllowance = new XRTableCell();
            this.txtTotalMinusLateEarly = new XRTableCell();
            this.txtTotalMinusMoney = new XRTableCell();
            this.txtTotalInsurance = new XRTableCell();
            this.txtTotalIncomeTaxMoney = new XRTableCell();
            this.txtTotalAdvance = new XRTableCell();
            this.txtTotalAssignment = new XRTableCell();
            this.txtTotalSalaryPlus = new XRTableCell();
            this.txtTotalSalaryMinus = new XRTableCell();
            this.txtTotalSalary = new XRTableCell();
            this.xrTableCell28 = new XRTableCell();
            this.GroupHeader1 = new GroupHeaderBand();
            this.xrTable2.BeginInit();
            this.xrTable1.BeginInit();
            this.xrTable4.BeginInit();
            this.BeginInit();
            this.Detail.Controls.AddRange(new XRControl[] { this.xrTable2 });
            this.Detail.HeightF = 29.16667f;
            this.Detail.Name = "Detail";
            this.Detail.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.Detail.TextAlignment = TextAlignment.TopLeft;
            this.xrTable2.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable2.Font = new Font("Times New Roman", 8.25f);
            this.xrTable2.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable2.Name = "xrTable2";
            this.xrTable2.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable2.Rows.AddRange(new XRTableRow[] { this.xrTableRow2 });
            this.xrTable2.SizeF = new SizeF(1121f, 29.16667f);
            this.xrTable2.StylePriority.UseBorders = false;
            this.xrTable2.StylePriority.UseFont = false;
            this.xrTable2.StylePriority.UsePadding = false;
            this.xrTable2.StylePriority.UseTextAlignment = false;
            this.xrTable2.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow2.Cells.AddRange(new XRTableCell[] { 
                this.txtOrder, this.txtEmployeeCode, this.txtFirstName, this.txtBasicSalary, this.txtInsuranceSalary, this.txtAllowanceInsurance, this.txtAllowance, this.txtMinusLateEarly, this.txtMinusMoney, this.txtInsurance, this.txtIncomeTaxMoney, this.txtAdvance, this.txtAssignment, this.txtSalaryPlus, this.txtSalaryMinus, this.txtSalary, 
                this.xrTableCell3
             });
            this.xrTableRow2.Name = "xrTableRow2";
            this.xrTableRow2.Weight = 1.0;
            this.txtOrder.Font = new Font("Times New Roman", 9f);
            this.txtOrder.Name = "txtOrder";
            this.txtOrder.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtOrder.StylePriority.UseFont = false;
            this.txtOrder.StylePriority.UsePadding = false;
            this.txtOrder.StylePriority.UseTextAlignment = false;
            this.txtOrder.Text = "txtOrder";
            this.txtOrder.TextAlignment = TextAlignment.MiddleLeft;
            this.txtOrder.Weight = 0.18749981602642024;
            this.txtOrder.BeforePrint += new PrintEventHandler(this.txtOrder_BeforePrint);
            this.txtEmployeeCode.Font = new Font("Times New Roman", 9f);
            this.txtEmployeeCode.Name = "txtEmployeeCode";
            this.txtEmployeeCode.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtEmployeeCode.StylePriority.UseFont = false;
            this.txtEmployeeCode.StylePriority.UsePadding = false;
            this.txtEmployeeCode.StylePriority.UseTextAlignment = false;
            this.txtEmployeeCode.Text = "[EmployeeCode]";
            this.txtEmployeeCode.TextAlignment = TextAlignment.MiddleLeft;
            this.txtEmployeeCode.Weight = 0.34602440412182045;
            this.txtFirstName.Font = new Font("Times New Roman", 9f);
            this.txtFirstName.Name = "txtFirstName";
            this.txtFirstName.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.txtFirstName.StylePriority.UseFont = false;
            this.txtFirstName.StylePriority.UsePadding = false;
            this.txtFirstName.StylePriority.UseTextAlignment = false;
            this.txtFirstName.Text = "[FirstName] [LastName]";
            this.txtFirstName.TextAlignment = TextAlignment.MiddleLeft;
            this.txtFirstName.Weight = 0.69307882721978364;
            this.txtBasicSalary.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtBasicSalary.Name = "txtBasicSalary";
            this.txtBasicSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtBasicSalary.StylePriority.UseFont = false;
            this.txtBasicSalary.StylePriority.UsePadding = false;
            this.txtBasicSalary.StylePriority.UseTextAlignment = false;
            this.txtBasicSalary.Text = "txtBasicSalary";
            this.txtBasicSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtBasicSalary.Weight = 0.33613800667209642;
            this.txtInsuranceSalary.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtInsuranceSalary.Name = "txtInsuranceSalary";
            this.txtInsuranceSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtInsuranceSalary.StylePriority.UseFont = false;
            this.txtInsuranceSalary.StylePriority.UsePadding = false;
            this.txtInsuranceSalary.StylePriority.UseTextAlignment = false;
            this.txtInsuranceSalary.Text = "txtInsuranceSalary";
            this.txtInsuranceSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtInsuranceSalary.Weight = 0.3361379923387266;
            this.txtAllowanceInsurance.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtAllowanceInsurance.Name = "txtAllowanceInsurance";
            this.txtAllowanceInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAllowanceInsurance.StylePriority.UseFont = false;
            this.txtAllowanceInsurance.StylePriority.UsePadding = false;
            this.txtAllowanceInsurance.StylePriority.UseTextAlignment = false;
            this.txtAllowanceInsurance.Text = "txtAllowanceInsurance";
            this.txtAllowanceInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtAllowanceInsurance.Weight = 0.29659234624520886;
            this.txtAllowance.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtAllowance.Name = "txtAllowance";
            this.txtAllowance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAllowance.StylePriority.UseFont = false;
            this.txtAllowance.StylePriority.UsePadding = false;
            this.txtAllowance.StylePriority.UseTextAlignment = false;
            this.txtAllowance.Text = "txtAllowance";
            this.txtAllowance.TextAlignment = TextAlignment.MiddleRight;
            this.txtAllowance.Weight = 0.29659234678903523;
            this.txtMinusLateEarly.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtMinusLateEarly.Name = "txtMinusLateEarly";
            this.txtMinusLateEarly.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtMinusLateEarly.StylePriority.UseFont = false;
            this.txtMinusLateEarly.StylePriority.UsePadding = false;
            this.txtMinusLateEarly.StylePriority.UseTextAlignment = false;
            this.txtMinusLateEarly.Text = "txtMinusLateEarly";
            this.txtMinusLateEarly.TextAlignment = TextAlignment.MiddleRight;
            this.txtMinusLateEarly.Weight = 0.29659220217179305;
            this.txtMinusMoney.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtMinusMoney.Name = "txtMinusMoney";
            this.txtMinusMoney.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtMinusMoney.StylePriority.UseFont = false;
            this.txtMinusMoney.StylePriority.UsePadding = false;
            this.txtMinusMoney.StylePriority.UseTextAlignment = false;
            this.txtMinusMoney.Text = "txtMinusMoney";
            this.txtMinusMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtMinusMoney.Weight = 0.29659234811952856;
            this.txtInsurance.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtInsurance.Name = "txtInsurance";
            this.txtInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtInsurance.StylePriority.UseFont = false;
            this.txtInsurance.StylePriority.UsePadding = false;
            this.txtInsurance.StylePriority.UseTextAlignment = false;
            this.txtInsurance.Text = "txtInsurance";
            this.txtInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtInsurance.Weight = 0.29659204343298828;
            this.txtIncomeTaxMoney.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtIncomeTaxMoney.Name = "txtIncomeTaxMoney";
            this.txtIncomeTaxMoney.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtIncomeTaxMoney.StylePriority.UseFont = false;
            this.txtIncomeTaxMoney.StylePriority.UsePadding = false;
            this.txtIncomeTaxMoney.StylePriority.UseTextAlignment = false;
            this.txtIncomeTaxMoney.Text = "txtIncomeTaxMoney";
            this.txtIncomeTaxMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtIncomeTaxMoney.Weight = 0.29659262457351837;
            this.txtAdvance.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtAdvance.Name = "txtAdvance";
            this.txtAdvance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAdvance.StylePriority.UseFont = false;
            this.txtAdvance.StylePriority.UsePadding = false;
            this.txtAdvance.StylePriority.UseTextAlignment = false;
            this.txtAdvance.Text = "txtAdvance";
            this.txtAdvance.TextAlignment = TextAlignment.MiddleRight;
            this.txtAdvance.Weight = 0.2965923519145231;
            this.txtAssignment.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtAssignment.Name = "txtAssignment";
            this.txtAssignment.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtAssignment.StylePriority.UseFont = false;
            this.txtAssignment.StylePriority.UsePadding = false;
            this.txtAssignment.StylePriority.UseTextAlignment = false;
            this.txtAssignment.Text = "txtAssignment";
            this.txtAssignment.TextAlignment = TextAlignment.MiddleRight;
            this.txtAssignment.Weight = 0.29659203134835366;
            this.txtSalaryPlus.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtSalaryPlus.Name = "txtSalaryPlus";
            this.txtSalaryPlus.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalaryPlus.StylePriority.UseFont = false;
            this.txtSalaryPlus.StylePriority.UsePadding = false;
            this.txtSalaryPlus.StylePriority.UseTextAlignment = false;
            this.txtSalaryPlus.Text = "txtSalaryPlus";
            this.txtSalaryPlus.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalaryPlus.Weight = 0.29659265558645648;
            this.txtSalaryMinus.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtSalaryMinus.Name = "txtSalaryMinus";
            this.txtSalaryMinus.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalaryMinus.StylePriority.UseFont = false;
            this.txtSalaryMinus.StylePriority.UsePadding = false;
            this.txtSalaryMinus.StylePriority.UseTextAlignment = false;
            this.txtSalaryMinus.Text = "txtSalaryMinus";
            this.txtSalaryMinus.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalaryMinus.Weight = 0.29659205216778423;
            this.txtSalary.Font = new Font("Microsoft Sans Serif", 8.25f);
            this.txtSalary.Name = "txtSalary";
            this.txtSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtSalary.StylePriority.UseFont = false;
            this.txtSalary.StylePriority.UsePadding = false;
            this.txtSalary.StylePriority.UseTextAlignment = false;
            this.txtSalary.Text = "txtSalary";
            this.txtSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtSalary.Weight = 0.39545677082025066;
            this.xrTableCell3.Name = "xrTableCell3";
            this.xrTableCell3.Weight = 0.28107483930587862;
            this.TopMargin.HeightF = 70f;
            this.TopMargin.Name = "TopMargin";
            this.TopMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.TopMargin.TextAlignment = TextAlignment.TopLeft;
            this.BottomMargin.HeightF = 56f;
            this.BottomMargin.Name = "BottomMargin";
            this.BottomMargin.Padding = new PaddingInfo(0, 0, 0, 0, 100f);
            this.BottomMargin.TextAlignment = TextAlignment.TopLeft;
            this.ReportHeader.Controls.AddRange(new XRControl[] { this.txtTitle, this.txtMonthYear });
            this.ReportHeader.HeightF = 54f;
            this.ReportHeader.Name = "ReportHeader";
            this.txtTitle.Font = new Font("Times New Roman", 18f, FontStyle.Bold);
            this.txtTitle.LocationFloat = new PointFloat(0f, 0f);
            this.txtTitle.Name = "txtTitle";
            this.txtTitle.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTitle.SizeF = new SizeF(1121f, 30.25001f);
            this.txtTitle.StylePriority.UseFont = false;
            this.txtTitle.StylePriority.UseTextAlignment = false;
            this.txtTitle.Text = "BẢNG THANH TO\x00c1N TIỀN LƯƠNG";
            this.txtTitle.TextAlignment = TextAlignment.MiddleCenter;
            this.txtMonthYear.Font = new Font("Times New Roman", 12f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.txtMonthYear.LocationFloat = new PointFloat(6.357829E-05f, 33.54171f);
            this.txtMonthYear.Name = "txtMonthYear";
            this.txtMonthYear.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtMonthYear.SizeF = new SizeF(1121f, 20f);
            this.txtMonthYear.StylePriority.UseFont = false;
            this.txtMonthYear.StylePriority.UseTextAlignment = false;
            this.txtMonthYear.Text = "Th\x00e1ng 00/0000";
            this.txtMonthYear.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTable1.AnchorVertical = VerticalAnchorStyles.Bottom;
            this.xrTable1.BackColor = Color.WhiteSmoke;
            this.xrTable1.BorderColor = Color.Black;
            this.xrTable1.Borders = BorderSide.All;
            this.xrTable1.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTable1.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable1.Name = "xrTable1";
            this.xrTable1.Rows.AddRange(new XRTableRow[] { this.xrTableRow1 });
            this.xrTable1.SizeF = new SizeF(1121f, 66.49999f);
            this.xrTable1.StylePriority.UseBackColor = false;
            this.xrTable1.StylePriority.UseBorderColor = false;
            this.xrTable1.StylePriority.UseBorders = false;
            this.xrTable1.StylePriority.UseFont = false;
            this.xrTable1.StylePriority.UseTextAlignment = false;
            this.xrTable1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableRow1.Cells.AddRange(new XRTableCell[] { 
                this.xrTableCell1, this.xrTableCell14, this.xrTableCell13, this.xrTableCell4, this.xrTableCell19, this.xrTableCell24, this.xrTableCell18, this.xrTableCell15, this.xrTableCell5, this.xrTableCell21, this.xrTableCell6, this.xrTableCell20, this.xrTableCell22, this.xrTableCell23, this.xrTableCell16, this.xrTableCell17, 
                this.xrTableCell2
             });
            this.xrTableRow1.Name = "xrTableRow1";
            this.xrTableRow1.Weight = 1.0;
            this.xrTableCell1.CanGrow = false;
            this.xrTableCell1.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell1.Name = "xrTableCell1";
            this.xrTableCell1.StylePriority.UseFont = false;
            this.xrTableCell1.StylePriority.UseTextAlignment = false;
            this.xrTableCell1.Text = "STT";
            this.xrTableCell1.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell1.Weight = 0.18749992582046493;
            this.xrTableCell14.CanGrow = false;
            this.xrTableCell14.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell14.Name = "xrTableCell14";
            this.xrTableCell14.StylePriority.UseFont = false;
            this.xrTableCell14.StylePriority.UseTextAlignment = false;
            this.xrTableCell14.Text = "M\x00e3 NV";
            this.xrTableCell14.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell14.Weight = 0.34602438830145205;
            this.xrTableCell13.CanGrow = false;
            this.xrTableCell13.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell13.Name = "xrTableCell13";
            this.xrTableCell13.StylePriority.UseFont = false;
            this.xrTableCell13.StylePriority.UseTextAlignment = false;
            this.xrTableCell13.Text = "Họ v\x00e0 t\x00ean";
            this.xrTableCell13.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell13.Weight = 0.69307862083182981;
            this.xrTableCell4.CanGrow = false;
            this.xrTableCell4.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell4.Name = "xrTableCell4";
            this.xrTableCell4.StylePriority.UseFont = false;
            this.xrTableCell4.StylePriority.UseTextAlignment = false;
            this.xrTableCell4.Text = "Lương căn bản";
            this.xrTableCell4.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell4.Weight = 0.33613795680527381;
            this.xrTableCell19.CanGrow = false;
            this.xrTableCell19.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell19.Name = "xrTableCell19";
            this.xrTableCell19.StylePriority.UseFont = false;
            this.xrTableCell19.Text = "LCB đ\x00f3ng BHXH";
            this.xrTableCell19.Weight = 0.3361379632323469;
            this.xrTableCell24.CanGrow = false;
            this.xrTableCell24.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell24.Name = "xrTableCell24";
            this.xrTableCell24.StylePriority.UseFont = false;
            this.xrTableCell24.Text = "Phụ cấp đ\x00f3ng BHXH";
            this.xrTableCell24.Weight = 0.29659232025045673;
            this.xrTableCell18.CanGrow = false;
            this.xrTableCell18.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell18.Name = "xrTableCell18";
            this.xrTableCell18.StylePriority.UseFont = false;
            this.xrTableCell18.StylePriority.UseTextAlignment = false;
            this.xrTableCell18.Text = "Phụ cấp lương";
            this.xrTableCell18.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell18.Weight = 0.29659231813673809;
            this.xrTableCell15.CanGrow = false;
            this.xrTableCell15.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell15.Name = "xrTableCell15";
            this.xrTableCell15.StylePriority.UseFont = false;
            this.xrTableCell15.Text = "Trừ đi trể - về sớm";
            this.xrTableCell15.Weight = 0.29659232081371867;
            this.xrTableCell5.CanGrow = false;
            this.xrTableCell5.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell5.Name = "xrTableCell5";
            this.xrTableCell5.StylePriority.UseFont = false;
            this.xrTableCell5.Text = "Trừ ng\x00e0y nghỉ";
            this.xrTableCell5.Weight = 0.29659232081371856;
            this.xrTableCell21.CanGrow = false;
            this.xrTableCell21.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell21.Name = "xrTableCell21";
            this.xrTableCell21.StylePriority.UseFont = false;
            this.xrTableCell21.StylePriority.UseTextAlignment = false;
            this.xrTableCell21.Text = "BHXH, BHYT, BHTN";
            this.xrTableCell21.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell21.Weight = 0.29659231926326168;
            this.xrTableCell6.CanGrow = false;
            this.xrTableCell6.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell6.Name = "xrTableCell6";
            this.xrTableCell6.StylePriority.UseFont = false;
            this.xrTableCell6.Text = "Tiền đ\x00f3ng thuế";
            this.xrTableCell6.Weight = 0.2965923182027454;
            this.xrTableCell20.CanGrow = false;
            this.xrTableCell20.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell20.Name = "xrTableCell20";
            this.xrTableCell20.StylePriority.UseFont = false;
            this.xrTableCell20.Text = "Tạm ứng";
            this.xrTableCell20.Weight = 0.29659234080486441;
            this.xrTableCell22.CanGrow = false;
            this.xrTableCell22.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell22.Name = "xrTableCell22";
            this.xrTableCell22.StylePriority.UseFont = false;
            this.xrTableCell22.Text = "C\x00f4ng t\x00e1c ph\x00ed";
            this.xrTableCell22.Weight = 0.29659234080486441;
            this.xrTableCell23.CanGrow = false;
            this.xrTableCell23.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell23.Name = "xrTableCell23";
            this.xrTableCell23.StylePriority.UseFont = false;
            this.xrTableCell23.Text = "C\x00e1c khoản thu nhập kh\x00e1c";
            this.xrTableCell23.Weight = 0.29659232194803248;
            this.xrTableCell16.CanGrow = false;
            this.xrTableCell16.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell16.Name = "xrTableCell16";
            this.xrTableCell16.StylePriority.UseFont = false;
            this.xrTableCell16.Text = "C\x00e1c khoản khấu trừ kh\x00e1c";
            this.xrTableCell16.Weight = 0.29659232194803253;
            this.xrTableCell17.CanGrow = false;
            this.xrTableCell17.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrTableCell17.Name = "xrTableCell17";
            this.xrTableCell17.StylePriority.UseFont = false;
            this.xrTableCell17.StylePriority.UseTextAlignment = false;
            this.xrTableCell17.Text = "Thực l\x00e3nh";
            this.xrTableCell17.TextAlignment = TextAlignment.MiddleCenter;
            this.xrTableCell17.Weight = 0.39545642940275755;
            this.xrTableCell2.CanGrow = false;
            this.xrTableCell2.Font = new Font("Times New Roman", 9.75f, FontStyle.Bold);
            this.xrTableCell2.Name = "xrTableCell2";
            this.xrTableCell2.StylePriority.UseFont = false;
            this.xrTableCell2.Text = "Ghi ch\x00fa (K\x00fd t\x00ean)";
            this.xrTableCell2.Weight = 0.28107469545678571;
            this.ReportFooter.Controls.AddRange(new XRControl[] { this.txtTotalMoneyText, this.txtTotalMoney, this.xrLabel3, this.xrLabel1 });
            this.ReportFooter.HeightF = 78f;
            this.ReportFooter.Name = "ReportFooter";
            this.txtTotalMoneyText.Font = new Font("Times New Roman", 11f, FontStyle.Italic | FontStyle.Bold, GraphicsUnit.Point, 0);
            this.txtTotalMoneyText.LocationFloat = new PointFloat(119.931f, 46.79165f);
            this.txtTotalMoneyText.Name = "txtTotalMoneyText";
            this.txtTotalMoneyText.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTotalMoneyText.SizeF = new SizeF(998.0691f, 20.00002f);
            this.txtTotalMoneyText.StylePriority.UseFont = false;
            this.txtTotalMoneyText.Text = "Kh\x00f4ng đồng.";
            this.txtTotalMoney.Font = new Font("Times New Roman", 11f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.txtTotalMoney.LocationFloat = new PointFloat(56.72253f, 22.91667f);
            this.txtTotalMoney.Name = "txtTotalMoney";
            this.txtTotalMoney.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.txtTotalMoney.SizeF = new SizeF(1061.278f, 20.00001f);
            this.txtTotalMoney.StylePriority.UseFont = false;
            this.txtTotalMoney.Text = "0 VNĐ";
            this.xrLabel3.Font = new Font("Times New Roman", 11f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrLabel3.LocationFloat = new PointFloat(7.152557E-05f, 46.79165f);
            this.xrLabel3.Name = "xrLabel3";
            this.xrLabel3.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel3.SizeF = new SizeF(119.9309f, 20f);
            this.xrLabel3.StylePriority.UseFont = false;
            this.xrLabel3.Text = "Số tiền bằng chữ:";
            this.xrLabel1.Font = new Font("Times New Roman", 11f, FontStyle.Bold, GraphicsUnit.Point, 0);
            this.xrLabel1.LocationFloat = new PointFloat(4.768372E-05f, 22.91667f);
            this.xrLabel1.Name = "xrLabel1";
            this.xrLabel1.Padding = new PaddingInfo(2, 2, 0, 0, 100f);
            this.xrLabel1.SizeF = new SizeF(56.72248f, 20f);
            this.xrLabel1.StylePriority.UseFont = false;
            this.xrLabel1.Text = "Số tiền:";
            this.GroupFooter1.Controls.AddRange(new XRControl[] { this.xrTable4 });
            this.GroupFooter1.HeightF = 29.16667f;
            this.GroupFooter1.Name = "GroupFooter1";
            this.xrTable4.BackColor = Color.WhiteSmoke;
            this.xrTable4.Borders = BorderSide.Bottom | BorderSide.Right | BorderSide.Left;
            this.xrTable4.Font = new Font("Times New Roman", 8.25f, FontStyle.Bold);
            this.xrTable4.LocationFloat = new PointFloat(0f, 0f);
            this.xrTable4.Name = "xrTable4";
            this.xrTable4.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTable4.Rows.AddRange(new XRTableRow[] { this.xrTableRow5 });
            this.xrTable4.SizeF = new SizeF(1121f, 29.16667f);
            this.xrTable4.StylePriority.UseBackColor = false;
            this.xrTable4.StylePriority.UseBorders = false;
            this.xrTable4.StylePriority.UseFont = false;
            this.xrTable4.StylePriority.UsePadding = false;
            this.xrTable4.StylePriority.UseTextAlignment = false;
            this.xrTable4.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableRow5.Cells.AddRange(new XRTableCell[] { this.xrTableCell25, this.txtTotalBasicSalary, this.txtTotalInsuranceSalary, this.txtTotalAllowanceInsurance, this.txtTotalAllowance, this.txtTotalMinusLateEarly, this.txtTotalMinusMoney, this.txtTotalInsurance, this.txtTotalIncomeTaxMoney, this.txtTotalAdvance, this.txtTotalAssignment, this.txtTotalSalaryPlus, this.txtTotalSalaryMinus, this.txtTotalSalary, this.xrTableCell28 });
            this.xrTableRow5.Name = "xrTableRow5";
            this.xrTableRow5.Weight = 1.0;
            this.xrTableCell25.Font = new Font("Times New Roman", 11f, FontStyle.Bold);
            this.xrTableCell25.Name = "xrTableCell25";
            this.xrTableCell25.Padding = new PaddingInfo(4, 0, 0, 0, 100f);
            this.xrTableCell25.StylePriority.UseFont = false;
            this.xrTableCell25.StylePriority.UsePadding = false;
            this.xrTableCell25.StylePriority.UseTextAlignment = false;
            this.xrTableCell25.Text = "Tổng cộng";
            this.xrTableCell25.TextAlignment = TextAlignment.MiddleLeft;
            this.xrTableCell25.Weight = 1.2266030616545023;
            this.txtTotalBasicSalary.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalBasicSalary.Name = "txtTotalBasicSalary";
            this.txtTotalBasicSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalBasicSalary.StylePriority.UseFont = false;
            this.txtTotalBasicSalary.StylePriority.UsePadding = false;
            this.txtTotalBasicSalary.StylePriority.UseTextAlignment = false;
            this.txtTotalBasicSalary.Text = "txtBasicSalary";
            this.txtTotalBasicSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalBasicSalary.Weight = 0.33613799238561848;
            this.txtTotalInsuranceSalary.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalInsuranceSalary.Name = "txtTotalInsuranceSalary";
            this.txtTotalInsuranceSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalInsuranceSalary.StylePriority.UseFont = false;
            this.txtTotalInsuranceSalary.StylePriority.UsePadding = false;
            this.txtTotalInsuranceSalary.StylePriority.UseTextAlignment = false;
            this.txtTotalInsuranceSalary.Text = "txtTotalInsuranceSalary";
            this.txtTotalInsuranceSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalInsuranceSalary.Weight = 0.33613799233872649;
            this.txtTotalAllowanceInsurance.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalAllowanceInsurance.Name = "txtTotalAllowanceInsurance";
            this.txtTotalAllowanceInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalAllowanceInsurance.StylePriority.UseFont = false;
            this.txtTotalAllowanceInsurance.StylePriority.UsePadding = false;
            this.txtTotalAllowanceInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalAllowanceInsurance.Text = "txtTotalAllowanceInsurance";
            this.txtTotalAllowanceInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalAllowanceInsurance.Weight = 0.29659234624520886;
            this.txtTotalAllowance.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalAllowance.Name = "txtTotalAllowance";
            this.txtTotalAllowance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalAllowance.StylePriority.UseFont = false;
            this.txtTotalAllowance.StylePriority.UsePadding = false;
            this.txtTotalAllowance.StylePriority.UseTextAlignment = false;
            this.txtTotalAllowance.Text = "txtAllowance";
            this.txtTotalAllowance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalAllowance.Weight = 0.2965921959343672;
            this.txtTotalMinusLateEarly.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalMinusLateEarly.Name = "txtTotalMinusLateEarly";
            this.txtTotalMinusLateEarly.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalMinusLateEarly.StylePriority.UseFont = false;
            this.txtTotalMinusLateEarly.StylePriority.UsePadding = false;
            this.txtTotalMinusLateEarly.StylePriority.UseTextAlignment = false;
            this.txtTotalMinusLateEarly.Text = "txtMinusLateEarly";
            this.txtTotalMinusLateEarly.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalMinusLateEarly.Weight = 0.29659220217179316;
            this.txtTotalMinusMoney.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalMinusMoney.Name = "txtTotalMinusMoney";
            this.txtTotalMinusMoney.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalMinusMoney.StylePriority.UseFont = false;
            this.txtTotalMinusMoney.StylePriority.UsePadding = false;
            this.txtTotalMinusMoney.StylePriority.UseTextAlignment = false;
            this.txtTotalMinusMoney.Text = "txtMinusMoney";
            this.txtTotalMinusMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalMinusMoney.Weight = 0.29659264982886463;
            this.txtTotalInsurance.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalInsurance.Name = "txtTotalInsurance";
            this.txtTotalInsurance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalInsurance.StylePriority.UseFont = false;
            this.txtTotalInsurance.StylePriority.UsePadding = false;
            this.txtTotalInsurance.StylePriority.UseTextAlignment = false;
            this.txtTotalInsurance.Text = "txtSocialInsurance";
            this.txtTotalInsurance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalInsurance.Weight = 0.29659174172365221;
            this.txtTotalIncomeTaxMoney.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalIncomeTaxMoney.Name = "txtTotalIncomeTaxMoney";
            this.txtTotalIncomeTaxMoney.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalIncomeTaxMoney.StylePriority.UseFont = false;
            this.txtTotalIncomeTaxMoney.StylePriority.UsePadding = false;
            this.txtTotalIncomeTaxMoney.StylePriority.UseTextAlignment = false;
            this.txtTotalIncomeTaxMoney.Text = "txtIncomeTaxMoney";
            this.txtTotalIncomeTaxMoney.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalIncomeTaxMoney.Weight = 0.29659266228718556;
            this.txtTotalAdvance.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalAdvance.Name = "txtTotalAdvance";
            this.txtTotalAdvance.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalAdvance.StylePriority.UseFont = false;
            this.txtTotalAdvance.StylePriority.UsePadding = false;
            this.txtTotalAdvance.StylePriority.UseTextAlignment = false;
            this.txtTotalAdvance.Text = "txtAdvance";
            this.txtTotalAdvance.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalAdvance.Weight = 0.29659265362385923;
            this.txtTotalAssignment.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalAssignment.Name = "txtTotalAssignment";
            this.txtTotalAssignment.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalAssignment.StylePriority.UseFont = false;
            this.txtTotalAssignment.StylePriority.UsePadding = false;
            this.txtTotalAssignment.StylePriority.UseTextAlignment = false;
            this.txtTotalAssignment.Text = "txtAssignment";
            this.txtTotalAssignment.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalAssignment.Weight = 0.29659172963901753;
            this.txtTotalSalaryPlus.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalSalaryPlus.Name = "txtTotalSalaryPlus";
            this.txtTotalSalaryPlus.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSalaryPlus.StylePriority.UseFont = false;
            this.txtTotalSalaryPlus.StylePriority.UsePadding = false;
            this.txtTotalSalaryPlus.StylePriority.UseTextAlignment = false;
            this.txtTotalSalaryPlus.Text = "txtSalaryPlus";
            this.txtTotalSalaryPlus.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSalaryPlus.Weight = 0.29659265558645648;
            this.txtTotalSalaryMinus.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalSalaryMinus.Name = "txtTotalSalaryMinus";
            this.txtTotalSalaryMinus.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSalaryMinus.StylePriority.UseFont = false;
            this.txtTotalSalaryMinus.StylePriority.UsePadding = false;
            this.txtTotalSalaryMinus.StylePriority.UseTextAlignment = false;
            this.txtTotalSalaryMinus.Text = "txtSalaryMinus";
            this.txtTotalSalaryMinus.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSalaryMinus.Weight = 0.29659205216778428;
            this.txtTotalSalary.Font = new Font("Microsoft Sans Serif", 8.25f, FontStyle.Bold);
            this.txtTotalSalary.Name = "txtTotalSalary";
            this.txtTotalSalary.Padding = new PaddingInfo(0, 4, 0, 0, 100f);
            this.txtTotalSalary.StylePriority.UseFont = false;
            this.txtTotalSalary.StylePriority.UsePadding = false;
            this.txtTotalSalary.StylePriority.UseTextAlignment = false;
            this.txtTotalSalary.Text = "txtTotalSalary";
            this.txtTotalSalary.TextAlignment = TextAlignment.MiddleRight;
            this.txtTotalSalary.Weight = 0.39545675196341712;
            this.txtTotalSalary.SummaryCalculated += new TextFormatEventHandler(this.txtTotalSalary_SummaryCalculated);
            this.xrTableCell28.Name = "xrTableCell28";
            this.xrTableCell28.Weight = 0.28107497130371306;
            this.GroupHeader1.Controls.AddRange(new XRControl[] { this.xrTable1 });
            this.GroupHeader1.HeightF = 66.49999f;
            this.GroupHeader1.Name = "GroupHeader1";
            this.GroupHeader1.RepeatEveryPage = true;
            base.Bands.AddRange(new Band[] { this.Detail, this.TopMargin, this.BottomMargin, this.ReportHeader, this.ReportFooter, this.GroupFooter1, this.GroupHeader1 });
            base.Font = new Font("Times New Roman", 9.75f);
            base.Landscape = true;
            base.Margins = new Margins(0x16, 0x1a, 70, 0x38);
            base.PageHeight = 0x33b;
            base.PageWidth = 0x491;
            base.PaperKind = PaperKind.A4;
            base.Version = "9.3";
            this.BeforePrint += new PrintEventHandler(this.rptListEmployee_BeforePrint);
            this.xrTable2.EndInit();
            this.xrTable1.EndInit();
            this.xrTable4.EndInit();
            this.EndInit();
        }

        private void LoadAllData()
        {
            this.l_SalaryTableList.Get(this.m_Month, this.m_Year);
            DataSet set = new DataSet();
            DataTable table = new DataTable();
            table = this.l_Salary.GetList(this.m_Level, this.m_Code, this.l_SalaryTableList.SalaryTableListID);
            if (this.m_Level != 0)
            {
                if (this.m_Level == 1)
                {
                    HRM_BRANCH hrm_branch = new HRM_BRANCH();
                    hrm_branch.Get(this.m_Code);
                    this.txtMonthYear.Text = "Đơn vị: " + hrm_branch.BranchName + ". " + this.txtMonthYear.Text;
                }
                else if (this.m_Level == 2)
                {
                    HRM_DEPARTMENT hrm_department = new HRM_DEPARTMENT();
                    hrm_department.Get(this.m_Code);
                    this.txtMonthYear.Text = "Đơn vị: " + hrm_department.DepartmentName + ". " + this.txtMonthYear.Text;
                }
                else if (this.m_Level == 3)
                {
                    HRM_GROUP hrm_group = new HRM_GROUP();
                    hrm_group.Get(this.m_Code);
                    this.txtMonthYear.Text = "Đơn vị: " + hrm_group.GroupName + ". " + this.txtMonthYear.Text;
                }
            }
            set.Tables.Add(table);
            base.DataSource = set;
            base.DataAdapter = table;
            base.DataMember = table.TableName;
            this.txtBasicSalary.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtInsuranceSalary.DataBindings.Add("Text", base.DataSource, "InsuranceSalary", "{0:##,##0}");
            this.txtAllowanceInsurance.DataBindings.Add("Text", base.DataSource, "AllowanceInsurance", "{0:##,##0}");
            this.txtAllowance.DataBindings.Add("Text", base.DataSource, "Allowance", "{0:##,##0}");
            this.txtMinusLateEarly.DataBindings.Add("Text", base.DataSource, "MinusLateEarly", "{0:##,##0}");
            this.txtMinusMoney.DataBindings.Add("Text", base.DataSource, "MinusMoney", "{0:##,##0}");
            this.txtInsurance.DataBindings.Add("Text", base.DataSource, "Insurance", "{0:##,##0}");
            this.txtIncomeTaxMoney.DataBindings.Add("Text", base.DataSource, "IncomeTaxMoney", "{0:##,##0}");
            this.txtAdvance.DataBindings.Add("Text", base.DataSource, "Advance", "{0:##,##0}");
            this.txtAssignment.DataBindings.Add("Text", base.DataSource, "Assignment", "{0:##,##0}");
            this.txtSalaryPlus.DataBindings.Add("Text", base.DataSource, "SalaryPlus", "{0:##,##0}");
            this.txtSalaryMinus.DataBindings.Add("Text", base.DataSource, "SalaryMinus", "{0:##,##0}");
            this.txtSalary.DataBindings.Add("Text", base.DataSource, "Salary", "{0:##,##0}");
            this.txtTotalBasicSalary.DataBindings.Add("Text", base.DataSource, "BasicSalary", "{0:##,##0}");
            this.txtTotalInsuranceSalary.DataBindings.Add("Text", base.DataSource, "InsuranceSalary", "{0:##,##0}");
            this.txtTotalAllowanceInsurance.DataBindings.Add("Text", base.DataSource, "AllowanceInsurance", "{0:##,##0}");
            this.txtTotalAllowance.DataBindings.Add("Text", base.DataSource, "Allowance", "{0:##,##0}");
            this.txtTotalMinusLateEarly.DataBindings.Add("Text", base.DataSource, "MinusLateEarly", "{0:##,##0}");
            this.txtTotalMinusMoney.DataBindings.Add("Text", base.DataSource, "MinusMoney", "{0:##,##0}");
            this.txtTotalInsurance.DataBindings.Add("Text", base.DataSource, "Insurance", "{0:##,##0}");
            this.txtTotalIncomeTaxMoney.DataBindings.Add("Text", base.DataSource, "IncomeTaxMoney", "{0:##,##0}");
            this.txtTotalAdvance.DataBindings.Add("Text", base.DataSource, "Advance", "{0:##,##0}");
            this.txtTotalAssignment.DataBindings.Add("Text", base.DataSource, "Assignment", "{0:##,##0}");
            this.txtTotalSalaryPlus.DataBindings.Add("Text", base.DataSource, "SalaryPlus", "{0:##,##0}");
            this.txtTotalSalaryMinus.DataBindings.Add("Text", base.DataSource, "SalaryMinus", "{0:##,##0}");
            this.txtTotalSalary.DataBindings.Add("Text", base.DataSource, "Salary", "{0:##,##0}");
            this.txtTotalBasicSalary.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalInsuranceSalary.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalAllowance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalMinusLateEarly.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalMinusMoney.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalInsurance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalIncomeTaxMoney.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalAdvance.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalAssignment.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSalaryPlus.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSalaryMinus.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
            this.txtTotalSalary.Summary = new XRSummary(SummaryRunning.Group, SummaryFunc.Sum, "{0:##,##0}");
        }

        private void rptListEmployee_BeforePrint(object sender, PrintEventArgs e)
        {
            this.txtMonthYear.Text = "Th\x00e1ng " + this.m_Month.ToString() + " Năm " + this.m_Year.ToString();
            this.LoadAllData();
            CreateHeaderReport.CreateHeader(this.ReportHeader);
            CreateFooterReport.CreateFooter("IsSalary", this.ReportFooter, this);
        }

        private void txtOrder_BeforePrint(object sender, PrintEventArgs e)
        {
            this.m_Order++;
            this.txtOrder.Text = this.m_Order.ToString();
        }

        private void txtTotalSalary_SummaryCalculated(object sender, TextFormatEventArgs e)
        {
            this.txtTotalMoney.Text = e.Text + " VNĐ";
            this.txtTotalMoneyText.Text = GridCalendarControlLib.ToText(decimal.Parse(e.Text));
        }
    }
}

